body{
    background: #F5F5F5;
}
.jd_layout{
    min-width:300px;/*适配小屏幕设备,为了保持布局的正常*/
    max-width:640px;/*行业中设计图一般为640px 如果不限制图片会被拉伸，显示效果会变差*/
    margin:0 auto;
    position: relative;
}
/*头部搜索*/
.jd_header{
    position: fixed;/*这里无法实现功能 fix是以window为基准，而不是父容器,所以会超宽，所以要在它的外面套一层jd_header_box*/
    left:0;
    top:0;
    width:100%;
    height: 40px;
    z-index: 1;
}

.jd_header .jd_header_box{
    min-width:300px;
    max-width:640px;
    margin:0 auto;
    background: rgba(201,21,35,0);
    position: relative;
    height:40px;
}

.jd_header .jd_header_box .icon_logo{
    /*background: url("../images/sprites.png") no-repeat;*/
    /*!*压缩背景图,原图是400*400  注意这里注释的代码已经一道base.css里*!*/
    /*background-size: 200px 200px;*/

    /*定位到精灵图的对应位置*/
    background-position: 0 -103px;
    position: absolute;
    left:10px;
    top:4px;
    height:36px;
    width:60px;
}

.jd_header .jd_header_box .login{
    position: absolute;
    right:0;
    top:0;
    width:50px;
    height:40px;
    line-height: 40px;
    text-align: center;
    font-size: 15px;
    color: #fff;
}

.jd_header .jd_header_box form{
    width:100%;
    padding-left: 75px;
    padding-right: 55px;
    position: relative;
}

.jd_header .jd_header_box form input{
    width:100%;/*设置100%是以父容器的内容计算的*/
    border-radius: 15px;
    height:30px;
    margin-top: 5px;
    padding-left: 30px;
}

.jd_header .jd_header_box form .icon_search{
    height:20px;
    width:20px;
    background-position: -60px -109px;
    position: absolute;
    left:80px;
    top:10px;
}

/*轮播图*/
.jd_banner{
    width:100%;
    position: relative;
    overflow: hidden;
}
.jd_banner ul:nth-child(1){
    /*需要放下10张图片  需要其宽度为父容器的10倍*/
    width:1000%;
    -webkit-transform: translateX(-10%);
    transform: translateX(-10%);
}
.jd_banner ul:nth-child(1) li{
    width:10%;
    float: left;
}
.jd_banner ul:nth-child(1) li a{
    width:100%;
    display: block;
}
.jd_banner ul:nth-child(1) li a img{
    width:100%;
    display: block;/*清除间距*/
}
.jd_banner ul:nth-child(2){
    position: absolute;
    /*绝对定位居中*/
    /*left 50%*/
    /*margin-left 一半的宽*/
    width: 118px;
    height:6px;
    left:50%;
    bottom:5px;
    margin-left: -59px;
}
.jd_banner ul:nth-child(2) li{
    float: left;
    width:6px;
    height:6px;
    border:1px solid #fff;
    border-radius: 3px;
    margin-left: 10px;
}
.jd_banner ul:nth-child(2) li.now{
    background: #fff;
}
.jd_banner ul:nth-child(2) li:first-child{
    margin-left: 0;
}

/*导航栏*/
.jd_nav{
    width:100%;
    padding:10px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}
.jd_nav ul li{
    float: left;
    width:25%;
}
.jd_nav ul li a{
    width:100%;
    display: block;
}
.jd_nav ul li a img{
    /*在移动端图片需要缩小一倍，以便显示更为清晰*/
    width:40px;
    height:40px;
    display: block;
    margin:0 auto;
}
.jd_nav ul li a p{
    font-size: 12px;
    text-align: center;
    color: #666;
    padding:6px 0;
}
/*商品主题*/
.jd_product{
    padding:0 5px;
}
/*公用商品盒子*/
.jd_product_box{
    margin-top: 10px;
    box-shadow: 0 0 1px 1px #e0e0e0;
    background: #fff;
}
.jd_product_box .product_tit{
    height:32px;
    border-bottom: 1px solid #e0e0e0;
    line-height: 32px;
}
.jd_product_box .no_border{
    border-bottom: none;
}
.jd_product_box .product_tit h3{
    position: relative;
    margin-left: 10px;
    padding-left: 7px;
    font-weight: normal;
}
.jd_product_box .product_tit h3::before{
    content:"";
    position: absolute;
    width:3px;
    height:12px;
    background: #d8505c;
    top:10px;
    left:0;
}
.jd_product_box .product_con{
    min-height:100px;
}

/*掌上秒杀*/
.sk_icon{
    background: url("../images/seckill-icon.png") no-repeat;
    background-size:16px 20px; /*在一倍范围内都没有影响*/
    width:16px;
    height:20px;
    float: left;
    margin-top: 7px;
    margin-left: 10px;
}
.sk_name{
    font-size: 15px;
    color: #d8505c;
    float: left;
    margin-left: 10px;
}
.sk_time{
    float: left;
    margin-left: 10px;
}
.sk_time span{
    width:15px;
    height:15px;
    line-height: 15px;
    text-align: center;
    background: #333;
    float: left;
    margin-top: 8px;
    margin-right: 3px;
    color: #fff;
}
.sk_time span:nth-child(3n){
    background: #fff;
    color: #333;
    width:3px;
}
.sk_product{
    font-size: 12px;
    text-align: center;
    padding:10px 0;
}
.sk_product li{
    width:33.3333%;
    float: left;
}
.sk_product li a{
    width:100%;
    display: block;
    border-right: 1px solid #e0e0e0;
}
.sk_product li:last-child a{
    border-right: none;
}
.sk_product li a img{
    width:64%;
    margin:0 auto;
    display: block;
}
/*
nth-of-type(3n) 选择同类型的第n个
first-of-type 选择同类型的第一个
last-of-type 选择同类型的最后一个
*/
.sk_product li p:first-of-type{
    color: #d8505c;
    padding-top:5px;
}
.sk_product li p:last-of-type{
    /*这是删除线*/
    text-decoration: line-through;
    padding-top:5px;
}
/*商品图片 掌上秒杀区块下面的那些盒子图片同用样式*/
.w_50{
    width:50%;
    display: block;
}
.w_50 img{
    width:100%;
    display: block;
}
.b_right{
    border-right: 1px solid #e0e0e0;
}
.b_left{
    border-left: 1px solid #e0e0e0;
}
.b_bottom{
    border-bottom: 1px solid #e0e0e0;
}












